package com.ruoyi.applet.appletBanner.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 小程序轮播图对象 applet_banner
 * @author ruoyi
 * @date 2024-11-19
 */
public class AppletBanner extends BaseEntity {
    private static final long serialVersionUID = 1L;
    
    /** 主键 */
    private Long id;
    
    /** 轮播图标题 */
    @Excel(name = "轮播图标题")
    private String bannerTitle;
    
    /** 轮播图跳转路径 */
    @Excel(name = "轮播图跳转路径")
    private String bannerUrl;
    
    /** 轮播图地址 */
    @Excel(name = "轮播图地址")
    private String bannerImg;
    
    /** 资源类型（0图片资源，1轮播图资源） */
    @Excel(name = "资源类型", readConverterExp = "0=图片资源，1轮播图资源")
    private Long resourceType;
    
    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public String getBannerTitle() {
        return bannerTitle;
    }
    
    public void setBannerTitle(String bannerTitle) {
        this.bannerTitle = bannerTitle;
    }
    
    public String getBannerUrl() {
        return bannerUrl;
    }
    
    public void setBannerUrl(String bannerUrl) {
        this.bannerUrl = bannerUrl;
    }
    
    public String getBannerImg() {
        return bannerImg;
    }
    
    public void setBannerImg(String bannerImg) {
        this.bannerImg = bannerImg;
    }
    
    public Long getResourceType() {
        return resourceType;
    }
    
    public void setResourceType(Long resourceType) {
        this.resourceType = resourceType;
    }
    
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("bannerTitle", getBannerTitle())
                .append("bannerUrl", getBannerUrl())
                .append("bannerImg", getBannerImg())
                .append("resourceType", getResourceType())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
